package pl.lodz.p.model.enums;

public enum DayOfTheWeek {

	MONDAY("Poniedzialek", 1),
	TUESDAY("Wtorek", 2),
	WEDNESDAY("Sroda", 3),
	THURSDAY("Czwartek", 4),
	FRIDAY("Piatek", 5),
	SATURDAY("Sobota", 6),
	SUNDAY("Niedziela", 7);
	
	public String label;
	
	public int dayNumber;
	
	private DayOfTheWeek(String label, int dayNumber) {
		this.label = label;
		this.dayNumber = dayNumber;
	}
	
	public boolean isWorkingDay(){
		if (this.equals(SATURDAY) || this.equals(SUNDAY))
			return false;
		return true;
	}
	
	public String getLabel(){
		return label;
	}
	
	public int getDayNumber(){
		return dayNumber;
	}
	
}
